@import "~antd/lib/style/themes/default.less";
@import "../../../../asset/style/utils.less";

.common-wrap {
  display: flex;
  flex: auto;
  flex-direction: column;
}

.home-wrap {
  composes: common-wrap;
  width: 100%;
  :global {
    .antd-pro-tabs .ant-tabs-bar {
      margin-bottom: 16px;
    }
  }
}

.home-container {
  composes: common-wrap;
}

.tableList {
  .tableListOperator {
    margin-bottom: 16px;
    button {
      margin-right: 8px;
    }
  }
}

.tableListForm {
  :global {
    .ant-form-item {
      margin-bottom: 24px !important;
      margin-right: 0 !important;
      display: flex !important;
      > .ant-form-item-label {
        width: auto;
        line-height: 32px;
        padding-right: 8px;
      }
    }
    .ant-form-item-control-wrapper {
      flex: 1;
    }
  }
  .submitButtons {
    white-space: nowrap;
    margin-bottom: 24px;
  }
}

.pageHeader {
  margin-bottom: 24px;
}

// 头部用户信息
.pageHeaderContent {
  display: flex;
  .avatar {
    flex: 0 1 72px;
    margin-bottom: 8px;
    & > span {
      border-radius: 72px;
      display: block;
      width: 72px;
      height: 72px;
    }
  }
  .userContent {
    position: relative;
    top: 4px;
    margin-left: 24px;
    flex: 1 1 auto;
    color: @text-color-secondary;
    line-height: 22px;
    .contentTitle {
      font-size: 20px;
      line-height: 28px;
      font-weight: 500;
      color: @heading-color;
      margin-bottom: 12px;
    }
  }
  .userTagsContent {
    position: relative;
    top: 4px;
    margin-left: 24px;
    flex: 10 1 auto;
    color: @text-color-secondary;
    line-height: 22px;
  }
}

// 文章页
.listContent {
  .description {
    line-height: 22px;
    max-width: 720px;
  }
  .extra {
    color: @text-color-secondary;
    margin-top: 16px;
    height: 22px;
    line-height: 22px;
    & > :global(.ant-avatar) {
      vertical-align: top;
      margin-right: 8px;
      width: 20px;
      height: 20px;
      position: relative;
      top: 1px;
    }
    & > em {
      color: @disabled-color;
      font-style: normal;
      margin-left: 16px;
    }
  }
}

.listItemExtra {
  width: 272px;
  height: 1px;
}

@media screen and (max-width: @screen-xs) {
  .listContent {
    & > div {
      height: auto;
    }
  }
}

@media screen and (max-width: @screen-lg) {
  .tableListForm :global(.ant-form-item) {
    margin-right: 24px;
  }
  .listItemExtra {
    width: 0;
    height: 1px;
  }
}

@media screen and (max-width: @screen-md) {
  .tableListForm :global(.ant-form-item) {
    margin-right: 8px;
  }
}

@media screen and (max-width: @screen-sm) {
  .pageHeaderContent {
    display: block;
    .content {
      margin-left: 0;
    }
  }
}

.header-msg {
  :global {
    .antd-pro-detail {
      display: table-cell !important;
    }
  }
}

